package com.itheima.aop;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @author xiaoChen
 * @description: AUTO GENERATION
 * @date 2022/5/17 16:15
 */
public class BeforeInfo implements MethodBeforeAdvice {

    // Method 要执行的目标方法，
    // args 参数
    // target 目标类的实例对象
    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println(method.getName()+"方法执行了");
    }

}
